package com.maze.game.model.base
{
	import com.maze.game.model.base.Base;
	
	public class BasePoint extends Base
	{
		private var color:uint;
		
		public function BasePoint(baseWidth:uint, baseHeight:uint, color:uint = 0xffffff)
		{
			super(baseWidth, baseHeight, BaseType.WHITE_POINT);
			this.color = color;
			init();
		}

		private function init():void
		{
			var radWidth:uint = 20;
			var posx:uint = baseWidth/2-radWidth/2;
			var posy:uint = baseHeight/2-radWidth/2;
			graphics.clear();
			graphics.beginFill(color);
			graphics.drawRoundRect(posx,posy,radWidth,radWidth,20,20);
			graphics.endFill();
		}
	}
}